Skip to content

refactor: last gocognit candidates — bridge resources and TestViz - #14071

Merged
ndeloof merged 1 commit into
refactor-root-commandfrom
refactor-bridge-viz
Aug 18, 2026
Merged

refactor: last gocognit candidates — bridge resources and TestViz#14071
ndeloof merged 1 commit into
refactor-root-commandfrom
refactor-bridge-viz

Conversation

@ndeloof

@ndeloof ndeloof commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

What I did

Restructured LoadAdditionalResources (cognitive complexity 31 → 9) and TestViz (35 → 11, assertion helpers with t.Helper()). This removes the last two of the 19 //nolint:gocognit suppressions from the gocyclo→gocognit migration: the FIXME debt is fully paid, the linter now runs suppression-free across the repo.

Related issue

n/a

🤖 Generated with Claude Code

@ndeloof
ndeloof requested review from a team as code owners August 17, 2026 08:46
@ndeloof
ndeloof requested review from glours and removed request for a team August 17, 2026 08:46
@glours
glours force-pushed the refactor-bridge-viz branch from 2598187 to c8a8b5e Compare August 18, 2026 08:42
LoadAdditionalResources (cognitive complexity 31) moves its
per-service body to loadServiceImageResources, with the local-vs-pull
inspection decision in inspectServiceImage. TestViz (35) factors the
shared graph assertions into assertVizGraphNodes and
assertVizDependencyEdges (t.Helper), merging the allowed/forbidden
edge bookkeeping into one equivalent loop.

This removes the last two of the 19 //nolint:gocognit suppressions
introduced by the gocyclo->gocognit migration: the FIXME debt is fully
paid, the linter now runs suppression-free.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof
ndeloof force-pushed the refactor-bridge-viz branch from c8a8b5e to a1334d4 Compare August 18, 2026 09:41
Base automatically changed from refactor-create to refactor-root-command August 18, 2026 09:57
@ndeloof
ndeloof merged commit a1334d4 into main Aug 18, 2026
56 of 78 checks passed
@ndeloof
ndeloof deleted the refactor-bridge-viz branch August 18, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant